var collection = new Dictionary<string, Dictionary<string, int>>(); collection.Add("some key", new Dictionary<string, int>()); collection["some key"].Add("inner key", 0);